<?php

namespace Echecs\pageBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Echecs\pageBundle\Entity\Categorie
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Echecs\pageBundle\Repository\CategorieRepository")
 * 
 * 
 */
class Categorie
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $nom
     *
     * @ORM\Column(name="nom", type="string", length=255)
     */
    private $nom;

    /**
     * @var string $navigation
     *
     * @ORM\Column(name="navigation", type="boolean")
     */
    private $navigation;
    
    /**
     * @var string $sidebar
     *
     * @ORM\Column(name="sidebar", type="boolean")
     */
    private $sidebar;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set nom
     *
     * @param string $nom
     * @return Categorie
     */
    public function setNom($nom)
    {
        $this->nom = $nom;
    
        return $this;
    }

    /**
     * Get nom
     *
     * @return string 
     */
    public function getNom()
    {
        return $this->nom;
    }
    
     /**
     * Set nom
     *
     * @param boolean $navigation
     * @return Categorie
     */
    public function setNavigation($navigation)
    {
        $this->navigation = $navigation;
    
        return $this;
    }

    /**
     * Get nom
     *
     * @return string 
     */
    public function getNavigation()
    {
        return  $this->navigation;
    }
    
    
    /**
     * Set nom
     *
     * @param boolean $sidebar
     * @return Categorie
     */
    public function setSidebar($sidebar)
    {
        $this->sidebar = $sidebar;
    
        return $this;
    }

    /**
     * Get nom
     *
     * @return string 
     */
    public function getSidebar()
    {
        return  $this->sidebar;
    }
     /**
     * @var array articles
     *
     * @ORM\OneToMany(targetEntity="Article", mappedBy="idcategorie")
     */
    protected $articles;
    
    /**
     * Set articles
     *
     * @param array $article
     * @return Categorie
     */
    public function setArticles($article)
    {
            $this->articles = $article;
    
        return $this;
    }

    /**
     * Get articles
     *
     * @return array 
     */
    public function getArticles()
    {
        return $this->articles;
    }
    
   

}